Exists
TheExists
method returns a Boolean value that indicates whether the specified draft exists in this document.
ODBoolean Exists (in ODDraftID id, in ODDraft draft, in ODPositionCode posCode);
id
- The draft ID, or
kODNULLID
to use thedraft
andposCode
parameters to identify the desired draft.draft
- A reference to the draft object that is used with the
posCode
parameter to identify the desired draft, orkODNULL
to use theid
parameter to identify the desired draft.- posCode
- The position, relative to the
draft
parameter, of the desired draft in this document's draft history, orkODPosUndefined
to use theid
parameter to identify the desired draft.- return value
kODTrue
if the desired draft exists, otherwisekODFalse
.DISCUSSION
If theid
parameter is not null, this method uses that parameter to identify the desired draft and ignores thedraft
andposCode
parameters. If theid
parameter iskODNULLID
, this method uses thedraft
andposCode
parameters to identify the desired draft.EXCEPTIONS
kODErrInsufficientInfoInParams
- No draft was specified; the
id
parameter iskODNULLID
and thedraft
parameter iskODNULL
.kODErrUnsupportedPosCode
- The specified position code is not supported.
SEE ALSO
TheODDraftID
type (page 902).
TheODPositionCode
type (page 915).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help